!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=19)}([function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"e",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return c})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function a(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function c(){for(var t=[],e=0;e"}}function h(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function v(t,e){void 0===e&&(e=40);var n=Object.keys(d(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return Object(s.c)(n[0],e);for(var r=n.length;r>0;r--){var o=n.slice(0,r).join(", ");if(!(o.length>e))return r===n.length?o:Object(s.c)(o,e)}return""}function y(t){var e,n;if(Object(i.i)(t)){var o={};try{for(var s=Object(r.e)(Object.keys(t)),a=s.next();!a.done;a=s.next()){var c=a.value;void 0!==t[c]&&(o[c]=y(t[c]))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}return o}return Array.isArray(t)?t.map(y):t}},function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}));n(1);function r(t,e){return void 0===e&&(e=0),"string"!=typeof t||0===e||t.length<=e?t:t.substr(0,e)+"..."}function o(t,e){var n=t,r=n.length;if(r<=150)return n;e>r&&(e=r);var o=Math.max(e-60,0);o<5&&(o=0);var i=Math.min(o+140,r);return i>r-5&&(i=r),i===r&&(o=Math.max(i-140,0)),n=n.slice(o,i),o>0&&(n="'{snip} "+n),i"}catch(t){return""}}},,,function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,u=[],p=!1,f=-1;function d(){p&&c&&(p=!1,c.length?u=c.concat(u):f=-1,u.length&&l())}function l(){if(!p){var t=a(d);p=!0;for(var e=u.length;e;){for(c=u,u=[];++f1)for(var n=1;n ".length,c=void 0;n&&o++<5&&!("html"===(c=i(n,e))||o>1&&s+r.length*a+c.length>=80);)r.push(c),s+=c.length,n=n.parentNode;return r.reverse().join(" > ")}catch(t){return""}}function i(t,e){var n,o,i,s,a,c=t,u=[];if(!c||!c.tagName)return"";u.push(c.tagName.toLowerCase());var p=e&&e.length?e.filter((function(t){return c.getAttribute(t)})).map((function(t){return[t,c.getAttribute(t)]})):null;if(p&&p.length)p.forEach((function(t){u.push("["+t[0]+'="'+t[1]+'"]')}));else if(c.id&&u.push("#"+c.id),(n=c.className)&&Object(r.l)(n))for(o=n.split(/\s+/),a=0;a0||"true"===c?(console.log("%c LoyalSys EA loading... (build 85608484e23f9c09cc11c74442ff0047682de999 )","background: #222; color: #bada55"),document.cookie="lseadebug=true; expires=0; path=/",e.loyalsysSettingsEA.debug=!0):(console.log=function(){},e.loyalsysSettingsEA&&(e.loyalsysSettingsEA.debug=!1));var u=document.createElement("iframe"),p=(s=!1,n=navigator.userAgent||navigator.vendor||e.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substr(0,4)))&&(s=!0),s);console.log("%c IsMobile:","background: #222; color: #bada55",p);var f=e.loyalsysSettingsEA.u?e.loyalsysSettingsEA.u:document.location;!function(t,n,o){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4==i.readyState){if(200!=i.status)return void a.captureException(new Error("Got bad response from server:"+JSON.parse(i)));console.log("responseText:"+i.responseText);try{var t=JSON.parse(i.responseText)}catch(t){return console.log(t.message+" in "+i.responseText),void a.captureException(error)}o(t)}};var s=r()();console.log("url:",t),i.open("GET",t,!0),i.setRequestHeader("X-Correlation-Id",s),i.setRequestHeader("X-Token",e.loyalsysSettingsEA.token),i.setRequestHeader("X-Contact-Id",e.loyalsysSettingsEA.contactId),i.setRequestHeader("X-Language",e.loyalsysSettingsEA.language),i.setRequestHeader("X-Market",void 0===e.loyalsysSettingsEA.market?e.loyalsysSettingsEA.country:e.loyalsysSettingsEA.market),i.setRequestHeader("X-Url",n),e.loyalsysSettingsEA.planId&&i.setRequestHeader("X-Plan-Id",e.loyalsysSettingsEA.planId),i.send()}("https://contact-exaccess.loyalsys.io/web/exacc/v1/ub?customerId="+(e.loyalsysSettingsEA.customerId||e.loyalsysSettingsEA.accountId)+"&appId="+e.loyalsysSettingsEA.appId+"&date="+e.loyalsysSettingsEA.timestamp+"&t="+(new Date).getTime(),encodeURI(f),(function(t){try{if(t&&t.blockingEID){console.log("%c Effective exclusive ID:","background: #222; color: #bada55",t.blockingEID),u.style.cssText="top:0; left:0; position:fixed; width: 100% !important;height: 100% !important; border:0; z-index: 2147483647 !important; overflow: scroll;",u.setAttribute("id","loyalSysIframeXA"),console.log("%c IsMember:","background: #222; color: #bada55",""!==t.member&&""!==t.memberMobile),""!==t.member&&""!==t.memberMobile?p?u.setAttribute("src",t.memberMobile):u.setAttribute("src",t.member):p?u.setAttribute("src",t.nonMemberMobile):u.setAttribute("src",t.nonMember),u.onload=function(){try{this.contentWindow.focus(),e.document.addEventListener("click",(function(t){t.stopPropagation(),t.preventDefault()}),!0),e.HTMLElement.prototype.focus=function(t){t.focus()},e.document.body.style.overflow="hidden"}catch(t){a.captureException(t)}},document.body.appendChild(u);var n=document.getElementById("loyalSysIframeXA").cloneNode(!0);setInterval((function(){var t=document.getElementById("loyalSysIframeXA");t?t.isEqualNode(n)||(document.body.appendChild(n.cloneNode(!0)),document.body.removeChild(t)):document.body.appendChild(n.cloneNode(!0))}),1e3)}else console.log("%c Ticket:","background: #222; color: #bada55",t)}catch(t){console.log(t),a.captureException(t)}})),e.addEventListener("message",(function(t){"https://html.loyalsys.io"===t.origin&&"goback"===t.data.action&&top.window.history.back()}))}catch(t){console.log("[Loyalty] ".concat(t)),a.captureException(t)}}(window)}.call(this,n(11))},function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var o=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},function(t,e){for(var n=[],r=0;r<256;++r)n[r]=(r+256).toString(16).substr(1);t.exports=function(t,e){var r=e||0,o=n;return[o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],"-",o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]],o[t[r++]]].join("")}},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(18);function s(t){return new c((function(e){e(t)}))}function a(t){return new c((function(e,n){n(t)}))}var c=function(){function t(t){var e=this;this._state=0,this._handlers=[],this._resolve=function(t){e._setResult(1,t)},this._reject=function(t){e._setResult(2,t)},this._setResult=function(t,n){0===e._state&&(Object(o.n)(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))},this._executeHandlers=function(){if(0!==e._state){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t[0]||(1===e._state&&t[1](e._value),2===e._state&&t[2](e._value),t[0]=!0)}))}};try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return t.prototype.then=function(e,n){var r=this;return new t((function(t,o){r._handlers.push([!1,function(n){if(e)try{t(e(n))}catch(t){o(t)}else t(n)},function(e){if(n)try{t(n(e))}catch(t){o(t)}else o(e)}]),r._executeHandlers()}))},t.prototype.catch=function(t){return this.then((function(t){return t}),t)},t.prototype.finally=function(e){var n=this;return new t((function(t,r){var o,i;return n.then((function(t){i=!1,o=t,e&&e()}),(function(t){i=!0,o=t,e&&e()})).then((function(){i?r(o):t(o)}))}))},t}(),u=n(3),p=function(){function t(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}return t.clone=function(e){var n=new t;return e&&(n._breadcrumbs=Object(r.d)(e._breadcrumbs),n._tags=Object(r.a)({},e._tags),n._extra=Object(r.a)({},e._extra),n._contexts=Object(r.a)({},e._contexts),n._user=e._user,n._level=e._level,n._span=e._span,n._session=e._session,n._transactionName=e._transactionName,n._fingerprint=e._fingerprint,n._eventProcessors=Object(r.d)(e._eventProcessors),n._requestSession=e._requestSession),n},t.prototype.addScopeListener=function(t){this._scopeListeners.push(t)},t.prototype.addEventProcessor=function(t){return this._eventProcessors.push(t),this},t.prototype.setUser=function(t){return this._user=t||{},this._session&&this._session.update({user:t}),this._notifyScopeListeners(),this},t.prototype.getUser=function(){return this._user},t.prototype.getRequestSession=function(){return this._requestSession},t.prototype.setRequestSession=function(t){return this._requestSession=t,this},t.prototype.setTags=function(t){return this._tags=Object(r.a)(Object(r.a)({},this._tags),t),this._notifyScopeListeners(),this},t.prototype.setTag=function(t,e){var n;return this._tags=Object(r.a)(Object(r.a)({},this._tags),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setExtras=function(t){return this._extra=Object(r.a)(Object(r.a)({},this._extra),t),this._notifyScopeListeners(),this},t.prototype.setExtra=function(t,e){var n;return this._extra=Object(r.a)(Object(r.a)({},this._extra),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setFingerprint=function(t){return this._fingerprint=t,this._notifyScopeListeners(),this},t.prototype.setLevel=function(t){return this._level=t,this._notifyScopeListeners(),this},t.prototype.setTransactionName=function(t){return this._transactionName=t,this._notifyScopeListeners(),this},t.prototype.setTransaction=function(t){return this.setTransactionName(t)},t.prototype.setContext=function(t,e){var n;return null===e?delete this._contexts[t]:this._contexts=Object(r.a)(Object(r.a)({},this._contexts),((n={})[t]=e,n)),this._notifyScopeListeners(),this},t.prototype.setSpan=function(t){return this._span=t,this._notifyScopeListeners(),this},t.prototype.getSpan=function(){return this._span},t.prototype.getTransaction=function(){var t=this.getSpan();return t&&t.transaction},t.prototype.setSession=function(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this},t.prototype.getSession=function(){return this._session},t.prototype.update=function(e){if(!e)return this;if("function"==typeof e){var n=e(this);return n instanceof t?n:this}return e instanceof t?(this._tags=Object(r.a)(Object(r.a)({},this._tags),e._tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),e._extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),e._contexts),e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):Object(o.i)(e)&&(e=e,this._tags=Object(r.a)(Object(r.a)({},this._tags),e.tags),this._extra=Object(r.a)(Object(r.a)({},this._extra),e.extra),this._contexts=Object(r.a)(Object(r.a)({},this._contexts),e.contexts),e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this},t.prototype.clear=function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this},t.prototype.addBreadcrumb=function(t,e){var n="number"==typeof e?Math.min(e,100):100;if(n<=0)return this;var o=Object(r.a)({timestamp:Object(i.a)()},t);return this._breadcrumbs=Object(r.d)(this._breadcrumbs,[o]).slice(-n),this._notifyScopeListeners(),this},t.prototype.clearBreadcrumbs=function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this},t.prototype.applyToEvent=function(t,e){if(this._extra&&Object.keys(this._extra).length&&(t.extra=Object(r.a)(Object(r.a)({},this._extra),t.extra)),this._tags&&Object.keys(this._tags).length&&(t.tags=Object(r.a)(Object(r.a)({},this._tags),t.tags)),this._user&&Object.keys(this._user).length&&(t.user=Object(r.a)(Object(r.a)({},this._user),t.user)),this._contexts&&Object.keys(this._contexts).length&&(t.contexts=Object(r.a)(Object(r.a)({},this._contexts),t.contexts)),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts=Object(r.a)({trace:this._span.getTraceContext()},t.contexts);var n=this._span.transaction&&this._span.transaction.name;n&&(t.tags=Object(r.a)({transaction:n},t.tags))}return this._applyFingerprint(t),t.breadcrumbs=Object(r.d)(t.breadcrumbs||[],this._breadcrumbs),t.breadcrumbs=t.breadcrumbs.length>0?t.breadcrumbs:void 0,t.sdkProcessingMetadata=this._sdkProcessingMetadata,this._notifyEventProcessors(Object(r.d)(f(),this._eventProcessors),t,e)},t.prototype.setSDKProcessingMetadata=function(t){return this._sdkProcessingMetadata=Object(r.a)(Object(r.a)({},this._sdkProcessingMetadata),t),this},t.prototype._notifyEventProcessors=function(t,e,n,i){var s=this;return void 0===i&&(i=0),new c((function(a,c){var u=t[i];if(null===e||"function"!=typeof u)a(e);else{var p=u(Object(r.a)({},e),n);Object(o.n)(p)?p.then((function(e){return s._notifyEventProcessors(t,e,n,i+1).then(a)})).then(null,c):s._notifyEventProcessors(t,p,n,i+1).then(a).then(null,c)}}))},t.prototype._notifyScopeListeners=function(){var t=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(e){e(t)})),this._notifyingListeners=!1)},t.prototype._applyFingerprint=function(t){t.fingerprint=t.fingerprint?Array.isArray(t.fingerprint)?t.fingerprint:[t.fingerprint]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint},t}();function f(){return Object(u.b)("globalEventProcessors",(function(){return[]}))}function d(t){f().push(t)}var l=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){return t.__proto__=e,t}:function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(t,n)||(t[n]=e[n]);return t});var h=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return r.message=e,r.name=n.prototype.constructor.name,l(r,n.prototype),r}return Object(r.b)(e,t),e}(Error),v="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,y=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+))?@)([\w.-]+)(?::(\d+))?\/(.+)/;function _(t,e){void 0===e&&(e=!1);var n=t.host,r=t.path,o=t.pass,i=t.port,s=t.projectId;return t.protocol+"://"+t.publicKey+(e&&o?":"+o:"")+"@"+n+(i?":"+i:"")+"/"+(r?r+"/":r)+s}function b(t){return"user"in t&&!("publicKey"in t)&&(t.publicKey=t.user),{user:t.publicKey||"",protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function g(t){var e="string"==typeof t?function(t){var e=y.exec(t);if(!e)throw new h("Invalid Sentry Dsn: "+t);var n=Object(r.c)(e.slice(1),6),o=n[0],i=n[1],s=n[2],a=void 0===s?"":s,c=n[3],u=n[4],p=void 0===u?"":u,f="",d=n[5],l=d.split("/");if(l.length>1&&(f=l.slice(0,-1).join("/"),d=l.pop()),d){var v=d.match(/^\d+/);v&&(d=v[0])}return b({host:c,pass:a,path:f,projectId:d,port:p,protocol:o,publicKey:i})}(t):b(t);return function(t){if(v){var e=t.port,n=t.projectId,r=t.protocol;if(["protocol","publicKey","host","projectId"].forEach((function(e){if(!t[e])throw new h("Invalid Sentry Dsn: "+e+" missing")})),!n.match(/^\d+$/))throw new h("Invalid Sentry Dsn: Invalid projectId "+n);if(!function(t){return"http"===t||"https"===t}(r))throw new h("Invalid Sentry Dsn: Invalid protocol "+r);if(e&&isNaN(parseInt(e,10)))throw new h("Invalid Sentry Dsn: Invalid port "+e)}}(e),e}var m=n(4),O=n(5);function j(){var t=Object(u.a)(),e=t.crypto||t.msCrypto;if(void 0!==e&&e.getRandomValues){var n=new Uint16Array(8);e.getRandomValues(n),n[3]=4095&n[3]|16384,n[4]=16383&n[4]|32768;var r=function(t){for(var e=t.toString(16);e.length<4;)e="0"+e;return e};return r(n[0])+r(n[1])+r(n[2])+r(n[3])+r(n[4])+r(n[5])+r(n[6])+r(n[7])}return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}function x(t){if(!t)return{};var e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],relative:e[5]+n+r}}function w(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function S(t){var e=t.message,n=t.event_id;if(e)return e;var r=w(t);return r?r.type&&r.value?r.type+": "+r.value:r.type||r.value||n||"":n||""}function E(t,e,n){var r=t.exception=t.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=e||""),i.type||(i.type=n||"Error")}function k(t,e){var n=w(t);if(n){var o=n.mechanism;if(n.mechanism=Object(r.a)(Object(r.a)(Object(r.a)({},{type:"generic",handled:!0}),o),e),e&&"data"in e){var i=Object(r.a)(Object(r.a)({},o&&o.data),e.data);n.mechanism.data=i}}}function T(t){if(t&&t.__sentry_captured__)return!0;try{Object(m.a)(t,"__sentry_captured__",!0)}catch(t){}return!1}var R,P=Object(u.a)(),N=["debug","info","warn","error","log","assert"];function D(t){var e=Object(u.a)();if(!("console"in e))return t();var n=e.console,r={};N.forEach((function(t){var o=n[t]&&n[t].__sentry_original__;t in e.console&&o&&(r[t]=n[t],n[t]=o)}));try{return t()}finally{Object.keys(r).forEach((function(t){n[t]=r[t]}))}}function A(){var t=!1,e={enable:function(){t=!0},disable:function(){t=!1}};return v?N.forEach((function(n){e[n]=function(){for(var e=[],o=0;o=0?e:0}t.release&&(this.release=t.release),t.environment&&(this.environment=t.environment),!this.ipAddress&&t.ipAddress&&(this.ipAddress=t.ipAddress),!this.userAgent&&t.userAgent&&(this.userAgent=t.userAgent),"number"==typeof t.errors&&(this.errors=t.errors),t.status&&(this.status=t.status)},t.prototype.close=function(t){t?this.update({status:t}):"ok"===this.status?this.update({status:"exited"}):this.update()},t.prototype.toJSON=function(){return Object(m.c)({sid:""+this.sid,init:this.init,started:new Date(1e3*this.started).toISOString(),timestamp:new Date(1e3*this.timestamp).toISOString(),status:this.status,errors:this.errors,did:"number"==typeof this.did||"string"==typeof this.did?""+this.did:void 0,duration:this.duration,attrs:{release:this.release,environment:this.environment,ip_address:this.ipAddress,user_agent:this.userAgent}})},t}(),B=function(){function t(t,e,n){void 0===e&&(e=new p),void 0===n&&(n=4),this._version=n,this._stack=[{}],this.getStackTop().scope=e,t&&this.bindClient(t)}return t.prototype.isOlderThan=function(t){return this._version=t&&(clearInterval(o),n(!1)))}),1)}))},t.prototype._getBackend=function(){return this._backend},t.prototype._isEnabled=function(){return!1!==this.getOptions().enabled&&void 0!==this._dsn},t.prototype._prepareEvent=function(t,e,n){var o=this,a=this.getOptions(),c=a.normalizeDepth,u=void 0===c?3:c,f=a.normalizeMaxBreadth,d=void 0===f?1e3:f,l=Object(r.a)(Object(r.a)({},t),{event_id:t.event_id||(n&&n.event_id?n.event_id:j()),timestamp:t.timestamp||Object(i.a)()});this._applyClientOptions(l),this._applyIntegrationsMetadata(l);var h=e;n&&n.captureContext&&(h=p.clone(h).update(n.captureContext));var v=s(l);return h&&(v=h.applyToEvent(l,n)),v.then((function(t){return t&&(t.sdkProcessingMetadata=Object(r.a)(Object(r.a)({},t.sdkProcessingMetadata),{normalizeDepth:Object(I.a)(u)+" ("+typeof u+")"})),"number"==typeof u&&u>0?o._normalizeEvent(t,u,d):t}))},t.prototype._normalizeEvent=function(t,e,n){if(!t)return null;var o=Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({},t),t.breadcrumbs&&{breadcrumbs:t.breadcrumbs.map((function(t){return Object(r.a)(Object(r.a)({},t),t.data&&{data:Object(I.a)(t.data,e,n)})}))}),t.user&&{user:Object(I.a)(t.user,e,n)}),t.contexts&&{contexts:Object(I.a)(t.contexts,e,n)}),t.extra&&{extra:Object(I.a)(t.extra,e,n)});return t.contexts&&t.contexts.trace&&(o.contexts.trace=t.contexts.trace),o.sdkProcessingMetadata=Object(r.a)(Object(r.a)({},o.sdkProcessingMetadata),{baseClientNormalized:!0}),o},t.prototype._applyClientOptions=function(t){var e=this.getOptions(),n=e.environment,r=e.release,o=e.dist,i=e.maxValueLength,s=void 0===i?250:i;"environment"in t||(t.environment="environment"in e?n:"production"),void 0===t.release&&void 0!==r&&(t.release=r),void 0===t.dist&&void 0!==o&&(t.dist=o),t.message&&(t.message=Object(O.c)(t.message,s));var a=t.exception&&t.exception.values&&t.exception.values[0];a&&a.value&&(a.value=Object(O.c)(a.value,s));var c=t.request;c&&c.url&&(c.url=Object(O.c)(c.url,s))},t.prototype._applyIntegrationsMetadata=function(t){var e=Object.keys(this._integrations);e.length>0&&(t.sdk=t.sdk||{},t.sdk.integrations=Object(r.d)(t.sdk.integrations||[],e))},t.prototype._sendEvent=function(t){this._getBackend().sendEvent(t)},t.prototype._captureEvent=function(t,e,n){return this._processEvent(t,e,n).then((function(t){return t.event_id}),(function(t){L&&R.error(t)}))},t.prototype._processEvent=function(t,e,n){var r=this,i=this.getOptions(),s=i.beforeSend,c=i.sampleRate,u=this.getTransport();function p(t,e){u.recordLostEvent&&u.recordLostEvent(t,e)}if(!this._isEnabled())return a(new h("SDK not enabled, will not capture event."));var f="transaction"===t.type;return!f&&"number"==typeof c&&Math.random()>c?(p("sample_rate","event"),a(new h("Discarding event because it's not included in the random sample (sampling rate = "+c+")"))):this._prepareEvent(t,n,e).then((function(n){if(null===n)throw p("event_processor",t.type||"event"),new h("An event processor returned null, will not send event.");return e&&e.data&&!0===e.data.__sentry__||f||!s?n:function(t){var e="`beforeSend` method has to return `null` or a valid event.";if(Object(o.n)(t))return t.then((function(t){if(!Object(o.i)(t)&&null!==t)throw new h(e);return t}),(function(t){throw new h("beforeSend rejected with "+t)}));if(!Object(o.i)(t)&&null!==t)throw new h(e);return t}(s(n,e))})).then((function(e){if(null===e)throw p("before_send",t.type||"event"),new h("`beforeSend` returned `null`, will not send event.");var o=n&&n.getSession&&n.getSession();return!f&&o&&r._updateSessionFromEvent(o,e),r._sendEvent(e),e})).then(null,(function(t){if(t instanceof h)throw t;throw r.captureException(t,{data:{__sentry__:!0},originalException:t}),new h("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: "+t)}))},t.prototype._process=function(t){var e=this;this._numProcessing+=1,t.then((function(t){return e._numProcessing-=1,t}),(function(t){return e._numProcessing-=1,t}))},t}();!function(){function t(t,e,n){void 0===e&&(e={}),this.dsn=t,this._dsnObject=g(t),this.metadata=e,this._tunnel=n}t.prototype.getDsn=function(){return this._dsnObject},t.prototype.forceEnvelope=function(){return!!this._tunnel},t.prototype.getBaseApiEndpoint=function(){return Q(this._dsnObject)},t.prototype.getStoreEndpoint=function(){return et(this._dsnObject)},t.prototype.getStoreEndpointWithUrlEncodedAuth=function(){return nt(this._dsnObject)},t.prototype.getEnvelopeEndpointWithUrlEncodedAuth=function(){return rt(this._dsnObject,this._tunnel)}}();function $(t,e,n){return{initDsn:t,metadata:e||{},dsn:g(t),tunnel:n}}function Q(t){var e=t.protocol?t.protocol+":":"",n=t.port?":"+t.port:"";return e+"//"+t.host+n+(t.path?"/"+t.path:"")+"/api/"}function Z(t,e){return""+Q(t)+t.projectId+"/"+e+"/"}function tt(t){return Object(m.h)({sentry_key:t.publicKey,sentry_version:"7"})}function et(t){return Z(t,"store")}function nt(t){return et(t)+"?"+tt(t)}function rt(t,e){return e||function(t){return Z(t,"envelope")}(t)+"?"+tt(t)}function ot(t,e){return void 0===e&&(e=[]),[t,e]}function it(t){var e=Object(r.c)(t,2),n=e[0],i=e[1],s=JSON.stringify(n);return i.reduce((function(t,e){var n=Object(r.c)(e,2),i=n[0],s=n[1],a=Object(o.j)(s)?String(s):JSON.stringify(s);return t+"\n"+JSON.stringify(i)+"\n"+a}),s)}function st(t){if(t.metadata&&t.metadata.sdk){var e=t.metadata.sdk;return{name:e.name,version:e.version}}}function at(t,e){return e?(t.sdk=t.sdk||{},t.sdk.name=t.sdk.name||e.name,t.sdk.version=t.sdk.version||e.version,t.sdk.integrations=Object(r.d)(t.sdk.integrations||[],e.integrations||[]),t.sdk.packages=Object(r.d)(t.sdk.packages||[],e.packages||[]),t):t}function ct(t,e){var n=st(e),o="aggregates"in t?"sessions":"session";return[ot(Object(r.a)(Object(r.a)({sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:_(e.dsn)}),[[{type:o},t]]),o]}var ut,pt=function(){function t(){}return t.prototype.sendEvent=function(t){return s({reason:"NoopTransport: Event has been skipped because no Dsn is configured.",status:"skipped"})},t.prototype.close=function(t){return s(!0)},t}(),ft=function(){function t(t){this._options=t,this._options.dsn||L&&R.warn("No DSN provided, backend will not do anything."),this._transport=this._setupTransport()}return t.prototype.eventFromException=function(t,e){throw new h("Backend has to implement `eventFromException` method")},t.prototype.eventFromMessage=function(t,e,n){throw new h("Backend has to implement `eventFromMessage` method")},t.prototype.sendEvent=function(t){if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=function(t,e){var n=st(e),o=t.type||"event",i=(t.sdkProcessingMetadata||{}).transactionSampling||{},s=i.method,a=i.rate;return at(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata,ot(Object(r.a)(Object(r.a)({event_id:t.event_id,sent_at:(new Date).toISOString()},n&&{sdk:n}),!!e.tunnel&&{dsn:_(e.dsn)}),[[{type:o,sample_rates:[{id:s,rate:a}]},t]])}(t,$(this._options.dsn,this._options._metadata,this._options.tunnel));this._newTransport.send(e).then(null,(function(t){L&&R.error("Error while sending event:",t)}))}else this._transport.sendEvent(t).then(null,(function(t){L&&R.error("Error while sending event:",t)}))},t.prototype.sendSession=function(t){if(this._transport.sendSession)if(this._newTransport&&this._options.dsn&&this._options._experiments&&this._options._experiments.newTransport){var e=$(this._options.dsn,this._options._metadata,this._options.tunnel),n=Object(r.c)(ct(t,e),1)[0];this._newTransport.send(n).then(null,(function(t){L&&R.error("Error while sending session:",t)}))}else this._transport.sendSession(t).then(null,(function(t){L&&R.error("Error while sending session:",t)}));else L&&R.warn("Dropping session because custom transport doesn't implement sendSession")},t.prototype.getTransport=function(){return this._transport},t.prototype._setupTransport=function(){return new pt},t}();!function(t){t.Fatal="fatal",t.Error="error",t.Warning="warning",t.Log="log",t.Info="info",t.Debug="debug",t.Critical="critical"}(ut||(ut={}));function dt(){if(!("fetch"in Object(u.a)()))return!1;try{return new Headers,new Request(""),new Response,!0}catch(t){return!1}}function lt(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}function ht(){if(!dt())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(t){return!1}}var vt=n(8);function yt(t,e,n,r){var o={filename:t,function:e,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}var _t=/^\s*at (?:(.*?) ?\((?:address at )?)?((?:file|https?|blob|chrome-extension|address|native|eval|webpack||[-a-z]+:|.*bundle|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,bt=/\((\S*)(?::(\d+))(?::(\d+))\)/,gt=[30,function(t){var e=_t.exec(t);if(e){if(e[2]&&0===e[2].indexOf("eval")){var n=bt.exec(e[2]);n&&(e[2]=n[1],e[3]=n[2],e[4]=n[3])}var o=Object(r.c)(Rt(e[1]||"?",e[2]),2),i=o[0];return yt(o[1],i,e[3]?+e[3]:void 0,e[4]?+e[4]:void 0)}}],mt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:file|https?|blob|chrome|webpack|resource|moz-extension|capacitor).*?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Ot=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,jt=[50,function(t){var e,n=mt.exec(t);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var o=Ot.exec(n[3]);o&&(n[1]=n[1]||"eval",n[3]=o[1],n[4]=o[2],n[5]="")}var i=n[3],s=n[1]||"?";return s=(e=Object(r.c)(Rt(s,i),2))[0],yt(i=e[1],s,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}}],xt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,wt=[40,function(t){var e=xt.exec(t);return e?yt(e[2],e[1]||"?",+e[3],e[4]?+e[4]:void 0):void 0}],St=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Et=[10,function(t){var e=St.exec(t);return e?yt(e[2],e[3]||"?",+e[1]):void 0}],kt=/ line (\d+), column (\d+)\s*(?:in (?:]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,Tt=[20,function(t){var e=kt.exec(t);return e?yt(e[5],e[3]||e[4]||"?",+e[1],+e[2]):void 0}],Rt=function(t,e){var n=-1!==t.indexOf("safari-extension"),r=-1!==t.indexOf("safari-web-extension");return n||r?[-1!==t.indexOf("@")?t.split("@")[0]:"?",n?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]};function Pt(t){var e=Dt(t),n={type:t&&t.name,value:It(t)};return e.length&&(n.stacktrace={frames:e}),void 0===n.type&&""===n.value&&(n.value="Unrecoverable error caught"),n}function Nt(t){return{exception:{values:[Pt(t)]}}}function Dt(t){var e=t.stacktrace||t.stack||"",n=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(At.test(t.message))return 1}return 0}(t);try{return Object(vt.a)(Et,Tt,gt,wt,jt)(e,n)}catch(t){}return[]}var At=/Minified React error #\d+;/i;function It(t){var e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}function Lt(t,e,n){var i=function(t,e,n,i){var s;if(Object(o.e)(t)&&t.error){return Nt(t.error)}if(Object(o.a)(t)||Object(o.b)(t)){var a=t;if("stack"in t)s=Nt(t);else{var c=a.name||(Object(o.a)(a)?"DOMError":"DOMException"),u=a.message?c+": "+a.message:c;E(s=Mt(u,e,n),u)}return"code"in a&&(s.tags=Object(r.a)(Object(r.a)({},s.tags),{"DOMException.code":""+a.code})),s}if(Object(o.d)(t))return Nt(t);if(Object(o.i)(t)||Object(o.f)(t)){return k(s=function(t,e,n){var r={exception:{values:[{type:Object(o.f)(t)?t.constructor.name:n?"UnhandledRejection":"Error",value:"Non-Error "+(n?"promise rejection":"exception")+" captured with keys: "+Object(m.d)(t)}]},extra:{__serialized__:Object(I.b)(t)}};if(e){var i=Dt(e);i.length&&(r.stacktrace={frames:i})}return r}(t,e,i),{synthetic:!0}),s}return E(s=Mt(t,e,n),""+t,void 0),k(s,{synthetic:!0}),s}(t,e&&e.syntheticException||void 0,n);return k(i),i.level=ut.Error,e&&e.event_id&&(i.event_id=e.event_id),s(i)}function Mt(t,e,n){var r={message:t};if(n&&e){var o=Dt(e);o.length&&(r.stacktrace={frames:o})}return r}function Ct(t){var e=[];function n(t){return e.splice(e.indexOf(t),1)[0]}return{$:e,add:function(r){if(!(void 0===t||e.length0&&n(!1)}),t);e.forEach((function(t){s(t).then((function(){--o||(clearTimeout(i),n(!0))}),r)}))}))}}}function qt(t,e){return t[e]||t.all||0}function Bt(t,e,n){return void 0===n&&(n=Date.now()),qt(t,e)>n}function Ut(t,e,n){var o,i,s,a;void 0===n&&(n=Date.now());var c=Object(r.a)({},t),u=e["x-sentry-rate-limits"],p=e["retry-after"];if(u)try{for(var f=Object(r.e)(u.trim().split(",")),d=f.next();!d.done;d=f.next()){var l=d.value.split(":",2),h=parseInt(l[0],10),v=1e3*(isNaN(h)?60:h);if(l[1])try{for(var y=(s=void 0,Object(r.e)(l[1].split(";"))),_=y.next();!_.done;_=y.next()){c[_.value]=n+v}}catch(t){s={error:t}}finally{try{_&&!_.done&&(a=y.return)&&a.call(y)}finally{if(s)throw s.error}}else c.all=n+v}}catch(t){o={error:t}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(o)throw o.error}}else p&&(c.all=n+function(t,e){void 0===e&&(e=Date.now());var n=parseInt(""+t,10);if(!isNaN(n))return 1e3*n;var r=Date.parse(""+t);return isNaN(r)?6e4:r-e}(p,n));return c}function zt(t){return t>=200&&t<300?"success":429===t?"rate_limit":t>=400&&t<500?"invalid":t>=500?"failed":"unknown"}function Ht(t,e,n){void 0===n&&(n=Ct(t.bufferSize||30));var o={};return{send:function(t){var i=function(t){var e=Object(r.c)(t,2),n=Object(r.c)(e[1],1);return Object(r.c)(n[0],1)[0].type}(t),c="event"===i?"error":i,u={category:c,body:it(t)};return Bt(o,c)?a({status:"rate_limit",reason:Xt(o,c)}):n.add((function(){return e(u).then((function(t){var e=t.body,n=t.headers,r=t.reason,i=zt(t.statusCode);return n&&(o=Ut(o,n)),"success"===i?s({status:i,reason:r}):a({status:i,reason:r||e||("rate_limit"===i?Xt(o,c):"Unknown transport error")})}))}))},flush:function(t){return n.drain(t)}}}function Xt(t,e){return"Too many "+e+" requests, backing off until: "+new Date(qt(t,e)).toISOString()}var Yt,Ft="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Jt=Object(u.a)();function Wt(){if(Yt)return Yt;if(lt(Jt.fetch))return Yt=Jt.fetch.bind(Jt);var t=Jt.document,e=Jt.fetch;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n);var r=n.contentWindow;r&&r.fetch&&(e=r.fetch),t.head.removeChild(n)}catch(t){Ft&&R.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return Yt=e.bind(Jt)}function Gt(t,e){if("[object Navigator]"===Object.prototype.toString.call(Jt&&Jt.navigator)&&"function"==typeof Jt.navigator.sendBeacon)return Jt.navigator.sendBeacon.bind(Jt.navigator)(t,e);if(dt()){var n=Wt();n(t,{body:e,method:"POST",credentials:"omit",keepalive:!0}).then(null,(function(t){console.error(t)}))}else;}function Kt(t){return"event"===t?"error":t}var Vt=Object(u.a)(),$t=function(){function t(t){var e=this;this.options=t,this._buffer=Ct(30),this._rateLimits={},this._outcomes={},this._api=$(t.dsn,t._metadata,t.tunnel),this.url=nt(this._api.dsn),this.options.sendClientReports&&Vt.document&&Vt.document.addEventListener("visibilitychange",(function(){"hidden"===Vt.document.visibilityState&&e._flushOutcomes()}))}return t.prototype.sendEvent=function(t){return this._sendRequest(function(t,e){var n,o=st(e),i=t.type||"event",s="transaction"===i||!!e.tunnel,a=(t.sdkProcessingMetadata||{}).transactionSampling||{},c=a.method,u=a.rate;at(t,e.metadata.sdk),t.tags=t.tags||{},t.extra=t.extra||{},t.sdkProcessingMetadata&&t.sdkProcessingMetadata.baseClientNormalized||(t.tags.skippedNormalization=!0,t.extra.normalizeDepth=t.sdkProcessingMetadata?t.sdkProcessingMetadata.normalizeDepth:"unset"),delete t.sdkProcessingMetadata;try{n=JSON.stringify(t)}catch(e){t.tags.JSONStringifyError=!0,t.extra.JSONStringifyError=e;try{n=JSON.stringify(Object(I.a)(t))}catch(t){var p=t;n=JSON.stringify({message:"JSON.stringify error after renormalization",extra:{message:p.message,stack:p.stack}})}}var f={body:n,type:i,url:s?rt(e.dsn,e.tunnel):nt(e.dsn)};if(s){var d=ot(Object(r.a)(Object(r.a)({event_id:t.event_id,sent_at:(new Date).toISOString()},o&&{sdk:o}),!!e.tunnel&&{dsn:_(e.dsn)}),[[{type:i,sample_rates:[{id:c,rate:u}]},f.body]]);f.body=it(d)}return f}(t,this._api),t)},t.prototype.sendSession=function(t){return this._sendRequest(function(t,e){var n=Object(r.c)(ct(t,e),2),o=n[0],i=n[1];return{body:it(o),type:i,url:rt(e.dsn,e.tunnel)}}(t,this._api),t)},t.prototype.close=function(t){return this._buffer.drain(t)},t.prototype.recordLostEvent=function(t,e){var n;if(this.options.sendClientReports){var r=Kt(e)+":"+t;Ft&&R.log("Adding outcome: "+r),this._outcomes[r]=(null!=(n=this._outcomes[r])?n:0)+1}},t.prototype._flushOutcomes=function(){if(this.options.sendClientReports){var t=this._outcomes;if(this._outcomes={},Object.keys(t).length){Ft&&R.log("Flushing outcomes:\n"+JSON.stringify(t,null,2));var e,n,o,s=rt(this._api.dsn,this._api.tunnel),a=Object.keys(t).map((function(e){var n=Object(r.c)(e.split(":"),2),o=n[0];return{reason:n[1],category:o,quantity:t[e]}})),c=(e=a,ot((n=this._api.tunnel&&_(this._api.dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:o||Object(i.a)(),discarded_events:e}]]));try{Gt(s,it(c))}catch(t){Ft&&R.error(t)}}else Ft&&R.log("No outcomes to flush")}},t.prototype._handleResponse=function(t){var e=t.requestType,n=t.response,r=t.headers,o=t.resolve,i=t.reject,s=zt(n.status);this._rateLimits=Ut(this._rateLimits,r),this._isRateLimited(e)&&Ft&&R.warn("Too many "+e+" requests, backing off until: "+this._disabledUntil(e)),"success"!==s?i(n):o({status:s})},t.prototype._disabledUntil=function(t){var e=Kt(t);return new Date(qt(this._rateLimits,e))},t.prototype._isRateLimited=function(t){var e=Kt(t);return Bt(this._rateLimits,e)},t}(),Qt=function(t){function e(e,n){void 0===n&&(n=Wt());var r=t.call(this,e)||this;return r._fetch=n,r}return Object(r.b)(e,t),e.prototype._sendRequest=function(t,e){var n=this;if(this._isRateLimited(t.type))return this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429});var r={body:t.body,method:"POST",referrerPolicy:ht()?"origin":""};return void 0!==this.options.fetchParameters&&Object.assign(r,this.options.fetchParameters),void 0!==this.options.headers&&(r.headers=this.options.headers),this._buffer.add((function(){return new c((function(e,o){n._fetch(t.url,r).then((function(r){var i={"x-sentry-rate-limits":r.headers.get("X-Sentry-Rate-Limits"),"retry-after":r.headers.get("Retry-After")};n._handleResponse({requestType:t.type,response:r,headers:i,resolve:e,reject:o})})).catch(o)}))})).then(void 0,(function(e){throw e instanceof h?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))},e}($t);var Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype._sendRequest=function(t,e){var n=this;return this._isRateLimited(t.type)?(this.recordLostEvent("ratelimit_backoff",t.type),Promise.reject({event:e,type:t.type,reason:"Transport for "+t.type+" requests locked till "+this._disabledUntil(t.type)+" due to too many requests.",status:429})):this._buffer.add((function(){return new c((function(e,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var i={"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")};n._handleResponse({requestType:t.type,response:o,headers:i,resolve:e,reject:r})}},o.open("POST",t.url),n.options.headers)Object.prototype.hasOwnProperty.call(n.options.headers,i)&&o.setRequestHeader(i,n.options.headers[i]);o.send(t.body)}))})).then(void 0,(function(e){throw e instanceof h?n.recordLostEvent("queue_overflow",t.type):n.recordLostEvent("network_error",t.type),e}))},e}($t),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.eventFromException=function(t,e){return Lt(t,e,this._options.attachStacktrace)},e.prototype.eventFromMessage=function(t,e,n){return void 0===e&&(e=ut.Info),function(t,e,n,r){void 0===e&&(e=ut.Info);var o=Mt(t,n&&n.syntheticException||void 0,r);return o.level=e,n&&n.event_id&&(o.event_id=n.event_id),s(o)}(t,e,n,this._options.attachStacktrace)},e.prototype._setupTransport=function(){if(!this._options.dsn)return t.prototype._setupTransport.call(this);var e,n,o=Object(r.a)(Object(r.a)({},this._options.transportOptions),{dsn:this._options.dsn,tunnel:this._options.tunnel,sendClientReports:this._options.sendClientReports,_metadata:this._options._metadata}),i=$(o.dsn,o._metadata,o.tunnel),s=rt(i.dsn,i.tunnel);if(this._options.transport)return new this._options.transport(o);if(dt()){var a=Object(r.a)({},o.fetchParameters);return this._newTransport=(e={requestOptions:a,url:s},void 0===n&&(n=Wt()),Ht({bufferSize:e.bufferSize},(function(t){var o=Object(r.a)({body:t.body,method:"POST",referrerPolicy:"origin"},e.requestOptions);return n(e.url,o).then((function(t){return t.text().then((function(e){return{body:e,headers:{"x-sentry-rate-limits":t.headers.get("X-Sentry-Rate-Limits"),"retry-after":t.headers.get("Retry-After")},reason:t.statusText,statusCode:t.status}}))}))}))),new Qt(o)}return this._newTransport=function(t){return Ht({bufferSize:t.bufferSize},(function(e){return new c((function(n,r){var o=new XMLHttpRequest;for(var i in o.onreadystatechange=function(){if(4===o.readyState){var t={body:o.response,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")},reason:o.statusText,statusCode:o.status};n(t)}},o.open("POST",t.url),t.headers)Object.prototype.hasOwnProperty.call(t.headers,i)&&o.setRequestHeader(i,t.headers[i]);o.send(e.body)}))}))}({url:s,headers:o.headers}),new Zt(o)},e}(ft);var ee=Object(u.a)();function ne(t){if(void 0===t&&(t={}),ee.document)if(t.eventId)if(t.dsn){var e=ee.document.createElement("script");e.async=!0,e.src=function(t,e){var n=g(t),r=Q(n)+"embed/error-page/",o="dsn="+_(n);for(var i in e)if("dsn"!==i)if("user"===i){if(!e.user)continue;e.user.name&&(o+="&name="+encodeURIComponent(e.user.name)),e.user.email&&(o+="&email="+encodeURIComponent(e.user.email))}else o+="&"+encodeURIComponent(i)+"="+encodeURIComponent(e[i]);return r+"?"+o}(t.dsn,t),t.onLoad&&(e.onload=t.onLoad);var n=ee.document.head||ee.document.body;n&&n.appendChild(e)}else Ft&&R.error("Missing dsn option in showReportDialog call");else Ft&&R.error("Missing eventId option in showReportDialog call")}var re,oe=Object(u.a)(),ie={},se={};function ae(t){if(!se[t])switch(se[t]=!0,t){case"console":!function(){if(!("console"in oe))return;N.forEach((function(t){t in oe.console&&Object(m.e)(oe.console,t,(function(e){return function(){for(var n=[],r=0;r2?e[2]:void 0;if(r){var o=re,i=String(r);re=i,ue("history",{from:o,to:i})}return t.apply(this,e)}}oe.onpopstate=function(){for(var t=[],e=0;e"}0!==n.length&&H().addBreadcrumb({category:"ui."+e.name,message:n},{event:e.event,name:e.name,global:e.global})})),this._options.xhr&&ce("xhr",je),this._options.fetch&&ce("fetch",xe),this._options.history&&ce("history",we)},t.id="Breadcrumbs",t}();function Oe(t){var e={category:"console",data:{arguments:t.args,logger:"console"},level:ge(t.level),message:Object(O.a)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;e.message="Assertion failed: "+(Object(O.a)(t.args.slice(1)," ")||"console.assert"),e.data.arguments=t.args.slice(1)}H().addBreadcrumb(e,{input:t.args,level:t.level})}function je(t){if(t.endTimestamp){if(t.xhr.__sentry_own_request__)return;var e=t.xhr.__sentry_xhr__||{},n=e.method,r=e.url,o=e.status_code,i=e.body;H().addBreadcrumb({category:"xhr",data:{method:n,url:r,status_code:o},type:"http"},{xhr:t.xhr,input:i})}else;}function xe(t){t.endTimestamp&&(t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method||(t.error?H().addBreadcrumb({category:"fetch",data:t.fetchData,level:ut.Error,type:"http"},{data:t.error,input:t.args}):H().addBreadcrumb({category:"fetch",data:Object(r.a)(Object(r.a)({},t.fetchData),{status_code:t.response.status}),type:"http"},{input:t.args,response:t.response})))}function we(t){var e=Object(u.a)(),n=t.from,r=t.to,o=x(e.location.href),i=x(n),s=x(r);i.path||(i=o),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),H().addBreadcrumb({category:"navigation",data:{from:n,to:r}})}n.d(e,"a",(function(){return Se}));var Se=function(t){function e(e){void 0===e&&(e={});return e._metadata=e._metadata||{},e._metadata.sdk=e._metadata.sdk||{name:"sentry.javascript.browser",packages:[{name:"npm:@sentry/browser",version:"6.19.7"}],version:"6.19.7"},t.call(this,te,e)||this}return Object(r.b)(e,t),e.prototype.showReportDialog=function(t){void 0===t&&(t={}),Object(u.a)().document&&(this._isEnabled()?ne(Object(r.a)(Object(r.a)({},t),{dsn:t.dsn||this.getDsn()})):Ft&&R.error("Trying to call showReportDialog with Sentry Client disabled"))},e.prototype._prepareEvent=function(e,n,r){return e.platform=e.platform||"javascript",t.prototype._prepareEvent.call(this,e,n,r)},e.prototype._sendEvent=function(e){var n=this.getIntegration(me);n&&n.addSentryBreadcrumb(e),t.prototype._sendEvent.call(this,e)},e}(V)},,,,function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n(0),o=n(1),i=n(17),s=n(4),a=n(8);function c(e,n,c){void 0===n&&(n=1/0),void 0===c&&(c=1/0);try{return function e(n,c,u,p,f){void 0===u&&(u=1/0);void 0===p&&(p=1/0);void 0===f&&(f=Object(i.a)());var d=Object(r.c)(f,2),l=d[0],h=d[1],v=c;if(v&&"function"==typeof v.toJSON)try{return v.toJSON()}catch(t){}if(null===c||["number","boolean","string"].includes(typeof c)&&!Object(o.h)(c))return c;var y=function(e,n){try{return"domain"===e&&n&&"object"==typeof n&&n._events?"[Domain]":"domainEmitter"===e?"[DomainEmitter]":void 0!==t&&n===t?"[Global]":"undefined"!=typeof window&&n===window?"[Window]":"undefined"!=typeof document&&n===document?"[Document]":Object(o.m)(n)?"[SyntheticEvent]":"number"==typeof n&&n!=n?"[NaN]":void 0===n?"[undefined]":"function"==typeof n?"[Function: "+Object(a.b)(n)+"]":"symbol"==typeof n?"["+String(n)+"]":"bigint"==typeof n?"[BigInt: "+String(n)+"]":"[object "+Object.getPrototypeOf(n).constructor.name+"]"}catch(t){return"**non-serializable** ("+t+")"}}(n,c);if(!y.startsWith("[object "))return y;if(0===u)return y.replace("object ","");if(l(c))return"[Circular ~]";var _=Array.isArray(c)?[]:{},b=0,g=Object(o.d)(c)||Object(o.f)(c)?Object(s.b)(c):c;for(var m in g)if(Object.prototype.hasOwnProperty.call(g,m)){if(b>=p){_[m]="[MaxProperties ~]";break}var O=g[m];_[m]=e(m,O,u-1,p,f),b+=1}return h(c),_}("",e,n,c)}catch(t){return{ERROR:"**non-serializable** ("+t+")"}}}function u(t,e,n){void 0===e&&(e=3),void 0===n&&(n=102400);var r,o=c(t,e);return r=o,function(t){return~-encodeURI(t).split(/%..|./).length}(JSON.stringify(r))>n?u(t,e-1,n):o}}).call(this,n(12))}]); //# sourceMappingURL=ls_ea.min.js.map